﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FirstFloor.ModernUI.App.Pages
{
    /// <summary>
    /// Interaction logic for Introduction.xaml
    /// </summary>
    public partial class Introduction : UserControl
    {
        public Introduction()
        {
            InitializeComponent();

            btn_invoice.MouseLeave += btn_invoice_MouseLeave;
            btn_invoice.MouseEnter += btn_invoice_MouseEnter;
            btn_items.MouseEnter += btn_items_MouseEnter;
            btn_items.MouseLeave += btn_items_MouseLeave;
            btn_customers.MouseEnter += btn_customers_MouseEnter;
            btn_customers.MouseLeave += btn_customers_MouseLeave;
            btn_emplyers.MouseEnter += btn_emplyers_MouseEnter;
            btn_emplyers.MouseLeave += btn_emplyers_MouseLeave;
            btn_money.MouseEnter += btn_money_MouseEnter;
            btn_money.MouseLeave += btn_money_MouseLeave;  
        }







        private void btn_invoice_Click(object sender, RoutedEventArgs e)
        {

            Presentation.LinkGroup lnk = new Presentation.LinkGroup();
            lnk.DisplayName = "vvvvvvvvvv";
            Presentation.LinkGroupCollection modern = new Presentation.LinkGroupCollection();
            MainWindow d = new MainWindow();
            d.MenuLinkGroups.Add(lnk);
           


        }

        void btn_invoice_MouseEnter(object sender, MouseEventArgs e)
        {
            string img_location = @"/Content/icons/invsmall.png";
            invoice_image.Stretch = Stretch.None;
            invoice_image.Margin = new Thickness(38, 85, 0, 0);
            invoice_image.Source = new BitmapImage(new Uri(img_location, UriKind.Relative));
        }

        void btn_invoice_MouseLeave(object sender, MouseEventArgs e)
        {
            string img_location = @"/Content/icons/invoice.png";
            invoice_image.Stretch = Stretch.Uniform;
            invoice_image.Margin = new Thickness(20, 71, 0, 0);
            invoice_image.Source = new BitmapImage(new Uri(img_location, UriKind.Relative));
        }






        private void btn_items_Click(object sender, RoutedEventArgs e)
        {

        }
        void btn_items_MouseLeave(object sender, MouseEventArgs e)
        {
            items_image.Height = 88;
            items_image.Width = 97;
            items_image.Stretch = Stretch.Uniform;
            items_image.Margin = new Thickness(313, 71, 0, 0);
        }

        void btn_items_MouseEnter(object sender, MouseEventArgs e)
        {
            items_image.Height = 62;
            items_image.Width = 71;
            items_image.Margin = new Thickness(328, 83, 0, 0);
        }

        private void btn_customers_Click(object sender, RoutedEventArgs e)
        {

        }

        void btn_customers_MouseLeave(object sender, MouseEventArgs e)
        {
            customer_image.Height = 88;
            customer_image.Width = 97;
            customer_image.Stretch = Stretch.Uniform;
            customer_image.Margin = new Thickness(607, 71, 0, 0);
        }

        void btn_customers_MouseEnter(object sender, MouseEventArgs e)
        {
            customer_image.Height = 58;
            customer_image.Width = 58;
            customer_image.Margin = new Thickness(623, 89, 0, 0);
        }

        private void btn_emplyers_Click(object sender, RoutedEventArgs e)
        {
           
        }

        void btn_emplyers_MouseLeave(object sender, MouseEventArgs e)
        {
            employers_image.Height = 88;
            employers_image.Width = 97;
            employers_image.Stretch = Stretch.Uniform;
            employers_image.Margin = new Thickness(166, 222, 0, 0);
        }
        void btn_emplyers_MouseEnter(object sender, MouseEventArgs e)
        {
            employers_image.Height = 62;
            employers_image.Width =71 ;
            employers_image.Margin = new Thickness(178,235,0,68);
        }

        private void btn_money_Click(object sender, RoutedEventArgs e)
        {
                 
        }

        void btn_money_MouseLeave(object sender, MouseEventArgs e)
        {
             money_image.Height = 88;
             money_image.Width = 97;
             money_image.Stretch = Stretch.Uniform;
             money_image.Margin = new Thickness(460, 222, 0, 0);
           
        }

        void btn_money_MouseEnter(object sender, MouseEventArgs e)
        {
            money_image.Height = 57;
            money_image.Width = 58;
            money_image.Margin = new Thickness(475, 237, 0, 0);
        }
    }
}
